/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the top of the
 * compiled file, but it's generally better to create a new file per style scope.
 *
 *= require_self
 *= require twitter/bootstrap
 *= require font-awesome
 *= require_tree .
 */


@import "twitter/bootstrap";
@import "twitter/bootstrap/variables";
@import "twitter/bootstrap/mixins";


//--------------------- Variables ------------------//
$myFondo: #ececec;
$borde-gris: #cdcdcd;



//---------------------- Mixins --------------------//
@mixin borde-radius($valor) {
  -webkit-border-radius: $valor;
  -moz-border-radius: $valor;
  border-radius: $valor;
}

@mixin animacion-querys {
  transition: all .4s linear;

  /* webkit */
  -webkit-transition: all .4s linear;

  /* moz */
  -moz-transition: all .4s linear;

  /* opera */
  -o-transition: all .4s linear;
}

@mixin calc($propiedad, $expresion) {
  #{$propiedad}: -moz-calc(#{$expresion});
  #{$propiedad}: -o-calc(#{$expresion});
  #{$propiedad}: -webkit-calc(#{$expresion});
  #{$propiedad}: calc(#{$expresion});
}



//----------------------------- Mis Estilos --------------------------------//
body {
  font-family: 'Open Sans', Arial;
  background: #E5E9EC !important;
  font-size: 13px;
}

.btn-detalle {
  background: #F0F0F0;
  padding: 14px;
  border: 1px solid #CDCDCD;
  text-align: right;
  margin-bottom: 30px;
  border-top: 0;
  -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
}

.bootstrap-select {
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;

  button {
    height: 30px;
    @include borde-radius(2px);
    background: #EEE;
    color: #919191;
    padding: 2px;
  }
}

.contenedor {
  margin-left: 225px;
  padding-top: 66px;
  z-index: 2;

  .container {
    max-width: 100% !important;
    width: 100%;
  }
}

.combo-rt {
  width: 100% !important;
}

.confirmar-datos {
  border: 1px solid #8FBCE2;
  @include borde-radius(3px);
  background: #F8F8F8;
  margin-top: 40px;
  margin-bottom: 60px;
  padding: 0px 12px 12px 12px;

  h2 {
    display: inline-block;
    top: -36px;
    position: relative;
    background: #428BCA;
    color: #FFF;
    font-size: 22px;
    font-weight: 100;
    padding: 1px 8px;
    @include borde-radius(3px);
    border: 1px solid #3978AF;
  }

  p {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 15px;
    margin-right: 6px;
  }

  span {
    font-weight: 300;
    color: #8A8A8A;
  }
}

#contextMenu {
  position: absolute;
  display:none;
}

.logout {
  margin-left: 0 !important;
}

.campo_numerico {
  background: #EBEBEB;
  border: 1px solid #CDCDCD;
  color: #E07A52;
  text-align: center;
  @include borde-radius(3px);
  font-size: 16px;
  font-weight: bold;
  width: 70%;
  -webkit-transition: All 0.4s ease;
  -moz-transition: All 0.4s ease;
  -ms-transition: All 0.4s ease;
  -o-transition: All 0.4s ease;
  transition: All 0.4s ease;

  &:focus {
    border: 1px solid #BEBEBE;
    background: #fff;
    outline: none;
    box-shadow: 0px 0px 5px 0px #C2C2C2;
  }
}

.detalle {
  margin-bottom: 0 !important;
}

.datos-oc {
  @include borde-radius(3px);
  background: #F7F7F7;
  border: 1px solid #CDCDCD;
  font-size: 12px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  margin-bottom: 20px;
  padding: 8px;

  label {
    margin-bottom: 0px;
    color: #4C5264;
  }

  input, select {
    margin-bottom: 10px;
  }

  .datos-oc-campo {
    border-bottom: 1px dashed #CDCDCD;
    margin-bottom: 6px;
  }
}

.formulario {
  background: #FFF;
  color: #5B5B5B;
  border: 1px solid #CDCDCD;
  -webkit-transition: All 0.4s ease;
  -moz-transition: All 0.4s ease;
  -o-transition: All 0.4s ease;
  transition: All 0.4s ease;
  padding: 0;

  .form-titulo {
    background: #EBEBEB;
    border-bottom: 1px solid #DDD;
    position: relative;

    h2 {
      font-size: 18px;
      font-weight: 300;
      color: #5B5B5B;
      padding: 15px;
      margin: 0px 0px 1px 0px;
      display: inline-block;
    }

    .form-buttons {
      position: absolute;
      top: 14px;
      right: 16px;
      display: inline-block;

      .button-adicional {
        color: #4C5264;
        margin-right: 6px;
        cursor: pointer;
        text-decoration: none;
      }
    }
  }

  .form-body {
    margin: 22px 14px 6px 14px;

    .campo-data {
      border-bottom: 1px dashed #E6E6E6;
      padding-bottom: 18px;
    }

    label {
      margin-bottom: 0;
      color: #7C7C7C;
    }

    .txt-area-wizard {
      height: 100px;
    }

    input, textarea {
      @include borde-radius(2px);
      background: #EEE;
      color: #919191;

      &:focus {
        background: #FFF;
        outline: #000;
      }
    }

    .form-control.txt-area {
      height: 34px;
    }

    .form-header-data {
      margin: 8px 0 5px;
      font-size: 17px;

      label {
        border-bottom: 1px solid #E6E6E6;
      }
    }
  }

  .form-partida {
    .campo-data {
      padding-bottom: 8px;
      margin-bottom: 6px;
    }
  }
}

.focused {
  border-left-color: #3498DB !important;
  background: #F0F0F0;
  -webkit-box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.1);
  box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.1);
}

.formulario-footer {
  background: #F0F0F0;
  padding: 20px;
  border: 1px solid #CDCDCD;
  text-align: right;
  margin-bottom: 30px;
  border-top: 0;
  -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
}

#footer {
  padding: 8px;

  .progress {
    margin-bottom: 0;
  }
}

.header-app {
  button.navbar-toggle {
    padding: 5px 20px;
  }

  .navbar {
    margin-left: 225px;
    background: #FFF;
    border-bottom: 2px solid #CDCDCD;
  }

  .navbar-right > li:last-child {
    padding-right: 15px;
  }

  .navbar-right li a {
    color: #4C5264 !important;
  }

  .navbar-right .dropdown-menu i {
    width: 18px;
    text-align: center;
  }
}

.login {
  width: 100%;
  max-width: 360px;
  margin: 8% auto;

  .login-content {
    background-color: #FFF;
    -o-box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    -ms-box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  }

  .login-header {
    padding: 10px 20px;
    background-color: #FFF;

    h3 {
      color: #3498DB;
      font-weight: 300;
    }
  }

  .login-text {
    padding: 20px 20px 20px 15px;
    border-left: 5px solid rgba(0, 0, 0, 0);
    -moz-transition: border-left-color 0.5s, box-shadow 0.5s, background-color 0.5s;
    -o-transition: border-left-color 0.5s, box-shadow 0.5s, background-color 0.5s;
    -webkit-transition: border-left-color 0.5s, box-shadow 0.5s, background-color 0.5s;
    transition: border-left-color 0.5s, box-shadow 0.5s, background-color 0.5s;

    .input-group {
      border: 1px solid #E0E0E0;
      background-color: #FFF;
    }

    .input-group-addon {
      border: none;
      @include borde-radius(0px);

      i {
        color: #ccc;
      }
    }

    input {
      outline: none;
      box-shadow: none;
      border: none;
      font-weight: 300;
    }
  }

  .login-actions {
    padding: 20px 20px 20px 20px;
    background: #F0F0F0;
    border-top: 1px solid #DFDFDF;
  }
}

.label-block {
  display: block;
}

#menu-secundario {
  display: none;
}

#menu-lateral > ul > li.active > a {
  color: #fff;
  background: #121515;
}

#menu-lateral > ul > li.active > a:hover {
  color: #fff;
  background: #121515;
  padding: 10px 15px;
}

#menu-lateral > ul > li.selected > a {
  color: #fff;
  background: #121515;
  padding-left: 20px;
}

#menu-lateral {
  width: 100%;
  border-top: 1px solid #242A30;

  ul {
    border-top: 1px solid #242A30 !important;
  }

  ul ul {
    background: #22262E;
    border-bottom: 1px solid #121515;

    a {
      //padding: 10px 25px;
      padding: 6px 25px;
      display: block;
      color: #D3D6DB;
      font-size: 13px;
      -o-transition: All 0.4s ease;
      -moz-transition: All 0.4s ease;
      -webkit-transition: All 0.4s ease;
      transition: All 0.4s ease;

      &:hover {
        color: #FFF;
        background: #121515;
      }

      i {
        margin-right: 5px;
      }
    }
  }

  > ul > li > a {
    font-size: 14px;
    display: block;
    color: #8B91A0;
    padding: 10px 15px;
    border-left: 4px solid rgba(0, 0, 0, 0);
    transition: All 0.25s ease;
    -o-transition: All 0.25s ease;
    -webkit-transition: All 0.25s ease;
    -moz-transition: All 0.25s ease;

    > i {
      margin-right: 5px;
      color: #D3D6DB;
      width: 14px;
      text-align: center;
    }

    > i.i-right {
      opacity: .5;
      float: right;
      margin: 3px 0 0 0;
    }

    &:hover {
      color: #fff;
      background: #121515;
      padding-left: 20px;
      border-left-color: #3B9BED;
    }
  }

  a {
    line-height: 1.3 !important;
  }
}

#menu-lateral, #menu-lateral li, #menu-lateral ul, #menu-lateral a {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  font-weight: normal;
  text-decoration: none;
  line-height: 1;
  font-size: 14px;
  position: relative;
}

.notif-header {
  position: absolute;
  top: 5px;
  left: 25px;
  -webkit-border-radius: 20px !important;
  -moz-border-radius: 20px !important;
  border-radius: 20px !important;
  padding: 5px 7px !important;
  z-index: 99;
}

.pager {
  padding: 6px;
  margin: 16px 0 !important;

  > li > a {
    border-radius: 0px !important;
    background: #428BCA !important;
    color: #FFF !important;
    border: 1px solid #3978AF !important;
  }

  .disabled > a {
    background: #CACACA !important;
    border: 1px solid #A0A0A0 !important;
    color: #919191 !important;
  }
}

.panel-izquierdo {
  width: 225px;
  background: #1B1E24;
  //margin-left: -70px;
  overflow: hidden;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 4;

  .header {
    background: #000;
    height: 50px;

    .logo {
      padding: 14px;

      h1 {
        margin: 0;
        padding: 0;
        font-size: 18px;
        font-weight: 600;
      }

      a {
        color: #8B91A0;

        &:hover {
          color: #fff;
          text-decoration: none;
        }
      }

      img {
        width: 50px;
        margin-right: 3px;
        @include borde-radius(4px);
        margin-top: -3px;
      }
    }
  }

  .cuerpo {
    overflow-y: auto;
    left: 0;
    right: 0;
    top: 50px;
    bottom: 50px;
    position: absolute;
    overflow-x: hidden;

    .media {
      padding: 0px 30px 15px;
      margin: 20px -15px 0px -15px;
      border-bottom: 1px solid #242A30;
      color: #FFF;

      a.pull-left {
        margin: 3px 10px 0 3px;
      }

      img {
        width: 57px;
      }

      .media-body a {
        font-size: 11px;
        margin: 0px 5px 0px 0px;
        color: #8B91A0;

        &:hover {
          color: #fff;
          text-decoration: none;
        }
      }
    }

    #search {
      padding: 15px;

      form {
        position: relative;
      }

      i {
        color: #909090;
        position: absolute;
        top: 10px;
        right: 10px;
      }

      .search {
        @include borde-radius(0px);
        border-color: #121515;
        background: #313940;
        padding-right: 25px;
        font-size: 12px;
        color: #909090;
        -webkit-transition: All 0.25s ease;
        -moz-transition: All 0.25s ease;
        -o-transition: All 0.25s ease;
        transition: All 0.25s ease;

        &:focus {
          border-color: #121215;
          background: #FDFDFD;
          -webkit-box-shadow: inset 0 1px 1px rgba(2, 0, 0, 0.075), 0 0 8px rgba(1, 1, 1, 0.3);
          -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(1, 1, 1, 0.3);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(1, 1, 1, 0.3);
        }
      }
    }
  }
}

.row-select {
  font-size: 15px;
  color: #2E2E2E !important;
  border-left: 9px solid #3394D5;
}

.row-seleccionado {
  background-color: rgba(128, 176, 238, 0.2) !important;
  color: #2590E4 !important;
  border-bottom: 1px solid rgba(128, 176, 238, 0.5) !important;
  border-top: 1px solid rgba(128, 176, 238, 0.5) !important;
}​

#rootwizard {
  .navbar {
    margin: 0px;
    border: 0px;
  }

  .container {
    padding-right: 0;
    padding-left: 0;
  }

  .nav-pills {
    border: 1px solid #707070;
    background: #636363;
  }

  .nav-pills > li + li {
    margin-left: 0px;
  }

  .nav-pills > li {
    width: 14.28%;
    text-align: center;
    border-right: 1px solid #535353;

    a {
      @include borde-radius(0px);
      padding: 7px 7px;
      color: #FFF;

      &:hover {
        background: #7C7C7C;
      }
    }

    span {
      color: #858585;
    }
  }

  .nav-pills > li.active {
    > a {

      &:hover {
        background: #428BCA;
      }

      span {
        color: #428BCA;
        font-weight: 600;
      }
    }
  }

  .tab-content {
    margin: 40px 20px 0px;
  }

  .tab-pane legend {
    margin-bottom: 30px;
    color: #6F6F6F;
    font-weight: 300;
  }
}

.show-oc {
  background: #F7F7F7;
  border: 1px solid #CDCDCD;
  margin-bottom: 20px;
  padding: 12px 12px 8px;

  h5 {
    margin-top: 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #E2E2E2;
    margin-bottom: 16px;
    color: #4C5264;
    font-size: 16px;
    font-weight: 300;
  }

  .datos-orden {
    .form-group {
      margin-bottom: 6px;
    }

    label {
      font-size: 14px;
      font-weight: 300;
      color: #4C5264;
      padding-top: 0;
    }

    .col-sm-10 {
      font-size: 15px;
      font-weight: 600;
    }
  }
}

.table-info-detalle > tbody > tr:last-child {
  > td:last-child {
    font-size: 20px;
    background: #707070;
    color: #FFF;
  }

  > td:nth-child(5) {
    font-size: 20px;
    color: #4C5264;
  }
}

.tablas-info {
  background: #FFF;
  color: #5B5B5B;
  margin-bottom: 20px;
  border: 1px solid #CDCDCD;
  -webkit-transition: All 0.4s ease;
  -moz-transition: All 0.4s ease;
  -o-transition: All 0.4s ease;
  transition: All 0.4s ease;
  padding: 0;

  .tabla-titulo {
    background: #EBEBEB;
    border-bottom: 1px solid #DDD;

    h2 {
      font-size: 18px;
      font-weight: 300;
      color: #5B5B5B;
      padding: 15px;
      margin: 0px 0px 1px 0px;
      display: inline-block;
    }
  }

  .tabla-buttons {
    position: relative;
    top: 12px;
    right: 16px;
    float: right;
    display: inline-block;

    .searchInput {
      display: inline-block;
      margin-right: 3px;

      i {
        position: relative;
        color: #9E9E9E;
        right: -22px;
        top: 0px;
        cursor: pointer;
      }

      input {
        font-size: 13px;
        color: #8A8A8A;
        padding: 3px 8px 3px 20px;
        font-weight: 400;
        width: 84px;
        background: #f3f3f3;
        border: 1px solid #CDCDCD;
        -webkit-transition: All 0.4s ease;
        -moz-transition: All 0.4s ease;
        -o-transition: All 0.4s ease;
        transition: All 0.4s ease;

        &:focus {
          outline: none;
          background: #fff;
          width: 120px;
        }
      }
    }

    .button-adicional {
      color: #4C5264;
      margin-right: 6px;
      cursor: pointer;
      text-decoration: none;
    }
  }
}

#tabla_items tbody tr {
  cursor: pointer;
}

#tbl_det_salida tbody tr {
  cursor: pointer;
}

.table-responsive {
  margin-bottom: 1px !important;
}

.tabla-general {
  margin-bottom: 0 !important;
}

.tabla-general-header {
  background: #f1f1f1;
  color: #777;
  text-shadow: 0 1px 0 #fff;

  a {
    color: #777;
    text-decoration: none;

    &:hover {
      color: #5091CC;
    }
  }
}

.table-datos {
  font-size: 13px;
  @extend .tabla-general;

  thead tr {
    @extend .tabla-general-header;

    th {
      text-align: center;
      vertical-align: middle !important;
      border-bottom: 1px solid #ddd !important;
    }
  }

  tbody {
    tr {
      color: #858585;

      td {
        text-align: center;
        vertical-align: middle !important;

        a {
          text-decoration: none;
        }
      }
    }
  }
}

.wizard {
  margin: 0 !important;

  .form-group {
    margin-bottom: 14px !important;
  }
}

.wizard-number {
  background: #FFF;
  color: #428BB3;
  @include borde-radius(50px);
  padding: 3px 7px;
  margin-right: 3px;
}
//------------------------ Media Querys ----------------------------//
@media (min-width: 767px) {
  .table-responsive {
    width: 100%;
    overflow-y: hidden;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }
}
